import { $get_ } from '@js/request'
import { AuthoritySchema } from '@src/components/schema/authority'

// 获取权限列表
export async function getAuthority (): Promise<AuthoritySchema[]> {
  const res = await $get_('/api/common/rule', {
    condition: JSON.stringify([{ k: 'type', o: '=', v: 'menu' }])
  })
  return res.data
}
